xsm/flask: Eliminate "array subscript above array bounds" warning
authorKeir Fraser <keir.fraser@citrix.com>
Thu, 11 Mar 2010 17:15:27 +0000 (17:15 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Thu, 11 Mar 2010 17:15:27 +0000 (17:15 +0000)
commit01046a5b39339d278e6d8b55ee32d462d63092da
tree7c5a697421843e588bb9a476f1df6e6c616615a7
parent1803dc9556de65b65c870d6bbdd1acce9c1d8fe3
xsm/flask: Eliminate "array subscript above array bounds" warning

gcc 4.4 incorrectly reports an "array subscript above array bounds"
warning in the flask policydb code, causing the build to fail with
FLASK_ENABLE=y.  Rework the code slightly to make it go away.

Signed-off-by: Stephen D. Smalley <sds@tycho.nsa.gov>
xen/xsm/flask/ss/policydb.c